home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Tools (InfoMagic)
/
Internet Tools.iso
/
dos_win
/
winsock
/
maillist
/
94-05.Z
/
94-05
/
000340_news@bigblue.oit.unc.edu_Tue May 24 16:44:53 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-31
|
3KB
Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
id AA14166; Tue, 24 May 1994 17:55:34 -0400
Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
id AA30571; Tue, 24 May 1994 17:47:09 -0400
Received: from GATEWAY by bigblue with netnews
for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
To: winsock@sunsite.unc.edu
Date: Tue, 24 May 1994 16:44:53 GMT
From: rharfor@symantec.com (ROB)
Message-Id: <rharfor.72.2DE22F05@symantec.com>
Organization: Symantec
Sender: ses
Subject: programming winsock dll
hi there,
I seem to be having problems programming sockets using Borlands c++ V4
I have the users IP address in a string lpstring, I then used the function
inet_addr(lpstring) to get an unsigned long version of the host name. this is
stored in rob1
e.g.
unsigned long rob1
rob1= inet_addr(lpstring)
The winsock help, says I should then use the comamnd gethostbyaddr to get the
host details.
The problem is that gethostbyaddr requires the ip address to be in the format
const char far *
My IP address is in the format unsigned long.
When I cast the data, I get
host = gethostbyaddr(const char *)rob1,.....)
This compiles ok, but GPF's on this line,as the address is invalid.
So I tried ...
host=gethostbyaddr(&rob1,....)
But this failed to compile, complaining about the different typedefs ?
Any ideas anyone , or does anyone have any examples?
Cheers rob.
From news@bigblue.oit.unc.edu Sat May 24 21:52:50 1994
Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
id AA21697; Tue, 24 May 1994 18:25:26 -0400
Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
id AA25806; Tue, 24 May 1994 18:02:05 -0400
Received: from GATEWAY by bigblue with netnews
for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
To: winsock@sunsite.unc.edu
Date: 24 May 1994 21:52:50 GMT
From: nwb@bu.edu (Noel Bracero)
Message-Id: <2rtsvi$96q@news.bu.edu>
Organization: Boston University
Sender: ses
Subject: Re: Will help setup SLIP for food;)
..[crap deleted]
Not really a joke, more of an experiment using the stupid pricks
who don't give assistance to new users. I have read more complaints
about newbies than trying to help them (my apologies to those who do
help).
It is easily set up when people help out! It took me a month starting
from when I first posted a request for info but since nobody responded
to the requests for info over more than three of those weeks it was
mostly wasted time. Since the IT department over here is incompetent
for the most part, I had the opportunity to be ignored on this newsgroup
I knew of several other people with similar experiences before I posted
the original article. The only reason I got any help was because I
stumbled on someone with a setup at school. I've only gotten info
on latest releases here. By the way once I did talk to the person
I had downloaded and set everything up by the end of the day!